package com.jie.deletefile.animtor;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import android.widget.ProgressBar;

import com.jie.deletefile.R;

public class AnimotorActivity extends AppCompatActivity {

    private ImageView an_iv;
    private ProgressBar an_pb;
    private ImageView iv_aq;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_animotor);
        initView();
        animator();
        new Animotor(iv_aq).startAnimotor();
    }

    private void animator() {
        new SetAnimator(this, an_iv, an_pb).startAnimator();
    }

    private void initView() {
        an_iv = (ImageView) findViewById(R.id.an_iv);
        an_pb = (ProgressBar) findViewById(R.id.an_pb);
        iv_aq = (ImageView) findViewById(R.id.iv_aq);

    }

}
